﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.Data.Linq;

namespace Xe168.MasterPage
{
    public partial class Xe168 : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        public List<HangXe> getCategory()
        {
            List<HangXe> list = new List<HangXe>();
            CarShopOnlineDBDataContext dc = new CarShopOnlineDBDataContext();
            var queryHangXe = from hx in dc.HangXes
                                  select hx;
            
            foreach (var row in queryHangXe)
            {
                list.Add(row);
            }
            return list;
        }
    }
}
